package com.kaishengit.service;

import java.util.List;

import com.kaishengit.dao.IdeaCommentDao;
import com.kaishengit.entity.IdeaComment;


public class IdeaCommentService {
	
	private IdeaCommentDao ideaCommentDao = new IdeaCommentDao();
	
	public void save(IdeaComment ideaComment){
		ideaCommentDao.save(ideaComment);
	}
	
	public List<IdeaComment> findIdeaCommentByIdeaId(int id) {
		
		return ideaCommentDao.findByIdeaId(id);
	}
	
	
	public void removeByIdeaId(int id) {
		ideaCommentDao.removeByIdeaId(id);
	} 
	
	
}
